import http from "@/axios/http";
import workspace from "@/axios/workspace";
const Hp_Login = (data) => {
  let formData = new FormData();
  formData.append("code", data.code);
  return workspace({
    method: "post",
    url: "/ding/cqsDingLogin",
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
    data: formData,
  });
};

// 获取公司员工
const Hp_GetUser = () => {
  return http({
    method: "get",
    url: "/user/search",
    params:{pageNum:1,pageSize:1000}
   
  });
};


// 获取自己
const Hp_UserInfo = ()=>{
  return workspace({
    method: "get",
    url: "/user/info",
  });
}



export default {
  Hp_Login,
  Hp_GetUser,
  Hp_UserInfo
};
